package com.sm.tool.entity.po;

import lombok.Builder;
import lombok.Data;

import java.util.Date;

/**
 * @program: practice
 * @description:
 * @author: liqitian.
 * @create: 2019-11-27 17:06
 **/

@Data
@Builder
public class UserTicket {
    /**
     * CREATE TABLE `user_ticket` (
     *   `id` bigint(21) NOT NULL,
     *   `user_id` bigint(21) DEFAULT NULL COMMENT '用户id',
     *   `ticket_id` bigint(21) DEFAULT NULL COMMENT '优惠券id',
     *   `collect_time` datetime DEFAULT NULL COMMENT '领取时间',
     *   `exprice_time` datetime DEFAULT NULL COMMENT '失效时间',
     *   `status` smallint(1) DEFAULT NULL COMMENT '0 未使用，1已过期，2已使用',
     *   `create_time` datetime DEFAULT NULL COMMENT '创建时间',
     *   PRIMARY KEY (`id`)
     * ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
     */
    private Long id;

    private Long userId;

    private Long ticketId;

    private Date collectTime;

    private Date expriceTime;

    private Integer status;

    private Date createTime;
}
